<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/10/13
  Time: 10:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>

    <title>cookieinfo</title>
    <style>
        .cookie_info{
            position: absolute;
            left: 300px;
            top: 200px;
            background-color: aqua;
                    }
        .textarea{
            margin-left: 50px;
            width: 300px;
        }
    </style>
    <script>
        var cookie = document.cookie;
         console.log(cookie);
    </script>
</head>
<body>
         <div class="cookie_info">
              <form action="cookieinfo" method="post">
                  <span>cookie name</span><input type="text" name="cookie_name">
                  <button type="submit">查询</button>  <br><br>
                  <input type="text" value="${sessionScope.cookieinfo}" class="textarea">
              </form>
         </div>
         <div>
             这里是全部的cookie
         </div>
<%--         循环获取cookie --%>
         <c:forEach var="i" items="${sessionScope.cookieinfo_List}">
             <div>
                 <span>${i}</span>
             </div>
         </c:forEach>

</body>
</html>
